package com.dz.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CategoryPageQueryDTO implements Serializable {

    //页码
    @NotNull(message = "页码不能为空")
    @Min(value = 1L,message = "页码不能小于1")
    private int page;

    //每页记录数
    @NotNull(message = "不能一条也不显示")
    @Min(value = 1L,message = "至少显示一条")
    private int pageSize;

    //分类名称

    private String name;

    //分类类型 1菜品分类  2套餐分类
    private Integer type;

}
